<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="dahuiji.css" >
		<script src="js/Bullet.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/Engine.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/Enemy.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/MyPlane.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/Weapon.js" type="text/javascript" charset="utf-8"></script>
		<script>
			window.onload=function(){
				var oUL=document.getElementById("options")
				var cover=document.getElementsByClassName("cover")[0]
				oUL.addEventListener("click",function(e){
					var level=e.target.getAttribute("value")
					window.ge=new GameEngine().start(level)
				})
				document.addEventListener("keyup",function(e){
					var key=e.keyCode||e.which
					if(key==32){
						GameEngine.pause=!GameEngine.pause;
						cover.children[0].innerText="游戏暂停"
						cover.style.display=GameEngine.pause?"block":"none"
					}
				})
			}
		</script>
	</head>
	<body>
		<div id="body_main" class="main">
			<ul id="options" class="options">
				<li value="4">超级困难</li>
				<li value="3">非常困难</li>
				<li value="2">比较困难</li>
				<li value="1">春哥附体</li>
			</ul>
			<div class="score">
				分数：<span>0</span>
			</div>
			<div class="cover">
				<span style="z-index: 9999;width:100%;top:45%;position: absolute;text-align: center;color: white;font-size: 50px;">游戏暂停</span>
			</div>
		</div>
	</body>
</html>
